# -*- coding: utf-8 -*-
# @File     : serializers.py
# @Author   : bingjia
# @Time     : 2020/8/11 10:32
# @Desc     :

from operation_back.operation.base.api import serializers

from . import models


class UavSerializer(serializers.ModelSerializer):
    """
    无人机序列化
    """
    class Meta:
        model = models.UAV
        fields = ['id', 'name', 'company', 'fly_time', 'wind_loading', 'image']


class CameraSerializer(serializers.ModelSerializer):
    """
    相机序列化
    """
    class Meta:
        model = models.UAV
        fields = ['id', 'name', 'company', 'visible_pixel', 'infrared_pixel', 'image']


